package com.dyc.maitaole.service.impl;

import com.dyc.maitaole.dao.BasicInfoDAO;
import com.dyc.maitaole.entity.BasicInfo;
import com.dyc.maitaole.service.BasicInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BasicInfoServiceImpl implements BasicInfoService {
    @Autowired
    private BasicInfoDAO basicInfoDAO;

    public List<BasicInfo> findAll(Integer goodId) {
        List<BasicInfo> basicInfos = basicInfoDAO.selectAll(goodId);
        return basicInfos;
    }
}
